<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <!--@click 绑定函数-->
    <!--<input type="button" value="点击" @click="f()">-->
    <input type="button" value="点击" v-on:click="f()">
    <input type="text" placeholder="结果判断" @click="">
</div>

<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script>
    let v = new Vue({
        el:"body>div",
        data:{},
        methods:{
            f(){
                /*alert("不错")*/
                let d = document.querySelector("div");
                d.innerText="猜小了";
            }
        }
    })
</script>
</body>
</html>